package p6;

/**
 * @author krystal
 * @date 2022/11/11 13:21
 */
class Date{
    public int year;
    public int month;
    public int day;

    public void setDay(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }

    public void showDay(){
        System.out.println("year="+year+",month="+month+",day="+day);
    }
}

public class Demo2 {
    public static void main(String[] args) {
        Date d1=new Date();
        Date d2=new Date();
        Date d3=new Date();

        d1.setDay(1993,1,12);
        d2.setDay(1992,5,4);
        d3.setDay(1999,2,23);

        d1.showDay();
        d2.showDay();
        d3.showDay();
    }
}
